package com.wys.mall.member;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;


/**
 * 远程调用别的微服务
 * 1、引入openFeign
 * 2、编写一个Feign接口
 * 3、开启远程调用功能
 */
@EnableFeignClients(basePackages = "com.wys.mall.member.feign")
@EnableTransactionManagement
@EnableDiscoveryClient
@MapperScan("com.wys.mall.member.dao")
@SpringBootApplication
public class MallMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(MallMemberApplication.class, args);
    }

}
